package com.xxx.shetuan3.exception;

import com.xxx.shetuan3.common.CommonResultCode;

public class ApiException extends RuntimeException {
    private CommonResultCode resultCode;

    public ApiException(CommonResultCode resultCode) {
        super(resultCode.getMessage());
        this.resultCode = resultCode;
    }

    public ApiException(String message){
        super(message);
    }

    public ApiException(Throwable cause){
        super(cause);
    }

    public ApiException(String message,Throwable cause){
        super(message, cause);
    }

    public CommonResultCode getResultCode(){
        return resultCode;
    }

}
